﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.FactoryVMs
{
    public partial class FactoryTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Factory._FactoryCode")]
        public ExcelPropety FactoryCode_Excel = ExcelPropety.CreateProperty<Factory>(x => x.FactoryCode);
        [Display(Name = "_Model._Factory._FactoryName")]
        public ExcelPropety FactoryName_Excel = ExcelPropety.CreateProperty<Factory>(x => x.FactoryName);
        [Display(Name = "_Model._Factory._ManagerID")]
        public ExcelPropety ManagerID_Excel = ExcelPropety.CreateProperty<Factory>(x => x.ManagerID);
        [Display(Name = "_Model._Factory._ManagerName")]
        public ExcelPropety ManagerName_Excel = ExcelPropety.CreateProperty<Factory>(x => x.ManagerName);
        [Display(Name = "_Model._Factory._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Factory>(x => x.CreateTime, true);
        [Display(Name = "_Model._Factory._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Factory>(x => x.UpdateTime, true);
        [Display(Name = "_Model._Factory._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Factory>(x => x.CreateBy);
        [Display(Name = "_Model._Factory._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Factory>(x => x.UpdateBy);
        [Display(Name = "_Model._Factory._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Factory>(x => x.IsValid);

	    protected override void InitVM()
        {
            
        }

    }

    public class FactoryImportVM : BaseImportVM<FactoryTemplateVM, Factory>
    {
            //import

    }

}